import request from '@/utils/request'

// 查询仓库查询列表
export function listWare(query) {
    return request({
        url: '/mxerp/ware/list',
        method: 'get',
        params: query
    })
}

// 查询仓库查询详细
export function getWare(id) {
    return request({
        url: '/mxerp/ware/' + id,
        method: 'get'
    })
}

// 新增仓库查询
export function addWare(data) {
    return request({
        url: '/mxerp/ware',
        method: 'post',
        data: data
    })
}

// 修改仓库查询
export function updateWare(data) {
    return request({
        url: '/mxerp/ware',
        method: 'put',
        data: data
    })
}

// 删除仓库查询
export function delWare(id) {
    return request({
        url: '/mxerp/ware/' + id,
        method: 'delete'
    })
}


export function getAllWare(){
    return request({
        url: '/mxerp/ware/getAllWare',
        method: 'post'
    })
}



// 入库
export function addNumWare(data) {
    return request({
        url: '/mxerp/inout/insave',
        method: 'post',
        data: data
    })
}


// 出库
export function outNumWare(data) {
    return request({
        url: '/mxerp/inout/outSave',
        method: 'post',
        data: data
    })
}


// 出库
export function listInOutWare(query) {
    return request({
        url: '/mxerp/inout/list',
        method: 'get',
        params: query
    })
}




